package iotest.practice;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("jianXin.txt");
        String skill = "天翔龙闪";
        byte[] data = skill.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        System.out.println("写完了");
        fos.close();

    }
}
